home *** CD-ROM | disk | FTP | other *** search
-
-
-
- iiiillllBBBBuuuuffffffffeeeerrrr((((3333)))) IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiillllBBBBuuuuffffffffeeeerrrr((((3333))))
-
-
-
- NNNNAAAAMMMMEEEE
- iiiillllBBBBuuuuffffffffeeeerrrr - Provides 4-D resizeable buffer support
-
- IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
- This is a base class.
-
- HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
- #include <il/ilBuffer.h>
-
- CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- ilBuffer provides support for accessing a buffer in up to four
- dimensions. The call operator, (), is overloaded to operate on an
- ilBuffer object and returns a pointer to the specified element in the
- buffer.
-
- In addition, the buffer can be resized after being created. If the new
- size is smaller and the difference is less than a specified size, the
- original buffer is reused to avoid a malloc. If the new size is smaller
- but the difference is greater than a specified size, or if the new size
- is larger, then the old buffer is de-allocated and a new buffer is
- allocated.
-
- ilBuffer also provides three public member variables that can be
- accessed.
-
- iiiinnnntttt _d_e_l Number of bytes to trigger re-allocation
-
- iiiinnnntttt _s_i_z_e Total size of current buffer in bytes
-
- vvvvooooiiiidddd**** _d_a_t_a Currently allocated data pointer
-
-
- CCCCLLLLAAAASSSSSSSS MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN SSSSUUUUMMMMMMMMAAAARRRRYYYY
- CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrrssss
-
- ilBuffer()
- ilBuffer(int sz, int d = defaultDel)
- ilBuffer(iflDataType dataType, int n0, int n1=1, int n2=1, int n3=1)
- ilBuffer(void* buffer, iflDataType dataType, int n0, int n1=1,
- int n2=1, int n3=1)
-
- MMMMeeeetttthhhhooooddddssss ttttoooo rrrreeeessssiiiizzzzeeee bbbbuuuuffffffffeeeerrrr
-
- void* resize(int sz)
- void* resize(int n0, int n1, int n2=1, int n3=1)
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- iiiillllBBBBuuuuffffffffeeeerrrr((((3333)))) IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiillllBBBBuuuuffffffffeeeerrrr((((3333))))
-
-
-
- QQQQuuuueeeerrrryyyyiiiinnnngggg aaaabbbboooouuuutttt bbbbuuuuffffffffeeeerrrr pppprrrrooooppppeeeerrrrttttiiiieeeessss
-
- iflDataType getDataType()
- int getDimension(int dim)
-
- GGGGeeeettttttttiiiinnnngggg ppppooooiiiinnnntttteeeerrrr ttttoooo aaaannnn eeeelllleeeemmmmeeeennnntttt
-
- void* operator()(int idx0)
- void* operator()(int idx0, int idx1)
- void* operator()(int idx0, int idx1, int idx2)
- void* operator()(int idx0, int idx1, int idx2, int idx3)
-
-
- FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
- ggggeeeettttDDDDaaaattttaaaaTTTTyyyyppppeeee(((())))
-
- iflDataType getDataType()
-
-
- This function returns the IL data type of the elements in the
- buffer. The enumerated type, _i_f_l_D_a_t_a_T_y_p_e, can be one of the
- following: _i_l_B_i_t, _i_l_U_C_h_a_r, _i_l_C_h_a_r, _i_l_U_S_h_o_r_t, _i_l_S_h_o_r_t, _i_l_U_L_o_n_g,
- _i_l_L_o_n_g, _i_l_F_l_o_a_t or _i_l_D_o_u_b_l_e.
-
- ggggeeeettttDDDDiiiimmmmeeeennnnssssiiiioooonnnn(((())))
-
- int getDimension(int dim)
-
-
- This function returns the number of elements in the dimension
- specified. The valid range for _d_i_m is 0-3.
-
- iiiillllBBBBuuuuffffffffeeeerrrr(((())))
-
- ilBuffer()
- ilBuffer(int sz, int d = defaultDel)
- ilBuffer(iflDataType dataType, int n0, int n1=1, int n2=1, int n3=1)
- ilBuffer(void* buffer, iflDataType dataType,
- int n0, int n1=1, int n2=1, int n3=1)
-
-
- Several versions of the constuctor are provided through overloading.
- The first (default) version takes no parameters and causes the
- buffer to be initialized to the default size of 16384 (128x128x1)
- bytes. The second version allows the size to be set to _s_z bytes. In
- addition, the resize threshold is set to _d bytes. When the buffer is
- resized smaller and the difference between the original size and the
- new size is greater than _d bytes, the old buffer is de-allocated and
- a new buffer is allocated.
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- iiiillllBBBBuuuuffffffffeeeerrrr((((3333)))) IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiillllBBBBuuuuffffffffeeeerrrr((((3333))))
-
-
-
- The third version allows the buffer size to be specified by giving
- the IL data type and a maximum of four dimensions. Note that the
- last three dimensions default to 1 for conveniently specifying a 1-
- D, 2-D or 3-D buffer. The last version of the constructor allows a
- user to provide a buffer and specify its IL data type and
- dimensions. In this case, ilBuffer does not allocate a buffer but
- simply uses the buffer provided.
-
- ooooppppeeeerrrraaaattttoooorrrr(((())))
-
- void* operator()(int idx0)
- void* operator()(int idx0, int idx1)
- void* operator()(int idx0, int idx1, int idx2)
- void* operator()(int idx0, int idx1, int idx2, int idx3)
-
-
- The call operator, (((()))), is overloaded to operate on an ilBuffer
- object. In addition, the call operator is further overloaded to
- provide 1-D, 2-D, 3-D or 4-D access to the buffer. In each case, a
- pointer is returned to the specified element in the buffer.
-
- rrrreeeessssiiiizzzzeeee(((())))
-
- void* resize(int sz)
- void* resize(int n0, int n1, int n2=1, int n3=1)
-
-
- This function allows the buffer to be resized. Two versions are
- provided through overloading. The first version allows the buffer
- size to be specified in bytes. The second version allows the buffer
- size to be specified by its dimensions.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _i_l/_i_l_D_a_t_a_S_i_z_e._h, _i_l/_i_l_T_y_p_e_s._h, _i_f_l/_i_f_l_T_y_p_e_s._h
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-